package com.wang.exam.mapper;

import com.wang.exam.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

//告诉sqlSessionFactory这是一个mapper
@Mapper
@Repository
public interface AdminMapper {
    //根据用户名查询信息
    List<Admin> getAdminByAdminName(String admin_name);
    //修改密码
    int updateAdminPassword(@RequestParam("admin_password") String admin_password, @RequestParam("admin_name") String admin_name);
}
